package com.cssl.server.impl;

import com.cssl.pojo.Users;
import com.cssl.server.UsersService;
import org.springframework.stereotype.Service;

@SuppressWarnings("all")
@Service
public class UsersServiceImpl implements UsersService {
    @Override
    public boolean findByUsername(String username, String password) {
        if(username.equals("admin")){
            return true;
        }
        return false;
    }

    @Override
    public Users getUsersById(Users user) {
        user.setUsername("管理员");
        user.setPassword("222");
        return user;
    }
}
